home *** CD-ROM | disk | FTP | other *** search
/ Libris Britannia 4 / science library(b).zip / science library(b) / CUGUK / COMMS / C101.ZIP / UUPC11XS.ZIP / UUCICO / MODEM.H < prev    next >
C/C++ Source or Header  |  1992-11-28  |  2KB  |  64 lines

  1. /*--------------------------------------------------------------------*/
  2. /*    m o d e m . h                                                   */
  3. /*                                                                    */
  4. /*    Prototypes for high level modem support routines                */
  5. /*--------------------------------------------------------------------*/
  6.  
  7. /*
  8.  *    $Header: E:\src\uupc\UUCICO\RCS\MODEM.H 1.4 1992/11/28 19:53:22 ahd Exp $
  9.  *
  10.  *    Revision history:
  11.  *    $Log: MODEM.H $
  12.  * Revision 1.4  1992/11/28  19:53:22  ahd
  13.  * Make callin time parameter const
  14.  *
  15.  * Revision 1.3  1992/11/18  03:50:17  ahd
  16.  * Move check of call window to avoid premature lock file overhead
  17.  *
  18.  */
  19.  
  20. /*--------------------------------------------------------------------*/
  21. /*                           Defined types                            */
  22. /*--------------------------------------------------------------------*/
  23.  
  24. typedef enum {
  25.    MODEM_FIXEDSPEED,
  26.    MODEM_VARIABLEPACKET,
  27.    MODEM_LARGEPACKET,
  28.    MODEM_DIRECT,
  29.    MODEM_CD,
  30.    MODEM_LAST
  31.    } MODEM_FLAGS;
  32.  
  33. /*--------------------------------------------------------------------*/
  34. /*                        Function prototypes                         */
  35. /*--------------------------------------------------------------------*/
  36.  
  37. CONN_STATE callup(void );
  38.  
  39. CONN_STATE callin( const time_t exit_time );
  40.  
  41. CONN_STATE callhot( const BPS speed );
  42.  
  43. void slowwrite( char *s, int len);
  44.  
  45. void shutdown( void );
  46.  
  47. INTEGER  GetGPacket( INTEGER maxvalue, const char protocol );
  48.  
  49. INTEGER  GetGWindow( INTEGER maxvalue, const char protocol );
  50.  
  51.  
  52. /*--------------------------------------------------------------------*/
  53. /*                       Environment variables                        */
  54. /*--------------------------------------------------------------------*/
  55.  
  56. extern INTEGER M_gPacketTimeout;
  57. extern INTEGER M_fPacketTimeout;
  58. extern INTEGER M_fPacketSize;
  59. extern INTEGER M_PortTimeout;
  60. extern INTEGER M_MaxErr;
  61. extern INTEGER M_xfer_bufsize;
  62. extern boolean bmodemflag[MODEM_LAST];
  63. extern char *device;
  64.